<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="javascript:;">驾驶员信息</a></li>
            <if condition="!($user_model == 4 && $admin['id'] != 10)">
			<li><a href="{:U('AdminDriver/add',array('id'=>empty($item['id'])?'':$item['id']))}" target="_self">添加驾驶员</a></li>
            </if>
		</ul>
        <form class="well form-search" method="post" action="{:U('AdminDriver/index')}">
            <!--<select name="s_tid">-->
                <!--<option value="">全部</option>-->
                <!--<foreach name="type_list" item="titem">-->

                    <!--<option <if condition="$s_tid == $titem['id']">selected</if> value="{$titem.id}">-->
                        <!--{$titem.title}-->
                    <!--</option>-->
                <!--</foreach>-->
            <!--</select> &nbsp;&nbsp;-->
            <!--关键字：-->
            <!--<input type="text" name="keyword" style="width: 200px;" value="{$keyword}" placeholder="请输入关键字...">-->
            <!--<input type="submit" class="btn btn-primary" value="搜索" />-->
            <!--<a class="btn btn-danger" href="{:U('AdminDriver/index')}">清空</a>-->
        </form>
		<form class="js-ajax-form" action="" method="post">

			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
                        <th width="50">所属机构</th>
                        <th width="50">姓名</th>
						<th width="50">生日</th>
						<th width="100">年龄</th>
                        <th width="50">性别</th>
                        <th width="50">驾驶员号码</th>
                        <th width="50">手机号</th>
                        <th width="50">身份证号</th>
                        <th width="50">联系电话</th>
                        <th width="50">通信地址</th>
                        <th width="50">创建时间</th>
                        <if condition="!($user_model == 4 && $admin['id'] != 10)">
						<th width="70">{:L('ACTIONS')}</th>
                        </if>
					</tr>
				</thead>
				<foreach name="list" item="vo">
				<tr>
                    <td><b>{$vo.logistics_name}</b></td>
                    <td>{$vo.driver_name}</td>
                    <td>{$vo.birth}</td>
                    <td>{$vo.age}</td>
                    <td><if condition="$vo['gender'] == 1">男<else/>女</if></td>
                    <td>{$vo.driver_licence}</td>
                    <td>{$vo.phone}</td>
                    <td>{$vo.identify}</td>
                    <td>{$vo.emerg_phone}</td>
                    <td>{$vo.address}</td>
					<td>{:date("Y-m-d H:i:s",$vo['create_time'])}</td>
                    <if condition="!($user_model == 4 && $admin['id'] != 10)">
					<td>

						<a href="{:U('AdminDriver/add',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
						<a href="{:U('AdminDriver/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>

					</td>
                    </if>
				</tr>
				</foreach>

			</table>

			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location = "{:U('AdminDriver/index',$formget)}";
			}
		}

	</script>
</body>
</html>